package com.gzx.plugin.ams.modular.commodity.service.impl;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.gzx.plugin.ams.modular.commodity.entity.AmsCommodityInfo;
import com.gzx.plugin.ams.modular.commodity.mapper.AmsCommodityInfoMapper;
import com.gzx.plugin.ams.modular.commodity.service.AmsCommodityInfoListService;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
@RequiredArgsConstructor
public class AmsCommodityInfoListServiceImpl implements AmsCommodityInfoListService {

    private final AmsCommodityInfoMapper commodityInfoMapper;

    @Override
    @DS("ams")
    public List<AmsCommodityInfo> listAll() {
        return commodityInfoMapper.selectList(null);
    }
}
